﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="ShoppingCart.cs" Inherits="Web.Shopping.ShoppingCart" %>

<%@ Register Src="../ctrl/UserLoginCtrl.ascx" TagName="UserLoginCtrl" TagPrefix="uc1" %>
<%@ Register Src="../ctrl/WeiboCtrl.ascx" TagName="WeiboCtrl" TagPrefix="uc2" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <div class="warp">
        <div class="contleft">
            <div class="todayqiupu">
                <h6>
                    <a href="#">首页</a> > <a href="#">今日秋霞圃</a></h6>
                <table width="100%" border="0" cellspacing="0" cellpadding="0" class="mycar">
                    <tr>
                        <td width="47%" bgcolor="#e4e4e4">
                            <strong>产品名称</strong>
                        </td>
                        <td width="37%" bgcolor="#e4e4e4">
                            <strong>数量</strong>
                        </td>
                        <td width="16%" bgcolor="#e4e4e4">
                            <strong>单价</strong>
                        </td>
                    </tr>
                    <asp:Repeater ID="rptList" runat="server" OnItemDataBound="rptList_ItemDataBound"
                        OnItemCreated="rptList_ItemCreated">
                        <ItemTemplate>
                            <tr>
                                <td height="50">
                                    <asp:Label ID="lblTitle" runat="server"></asp:Label>
                                    <asp:HiddenField ID="hddID" runat="server" />
                                </td>
                                <td height="50">
                                    <a href="#">
                                        <asp:Image ID="imgJian" runat="server" Width="17" Height="20" ImageAlign="AbsMiddle" ImageUrl="../images/jian.png" /></a>
                                    <asp:TextBox ID="txtCount" runat="server" CssClass="input"></asp:TextBox>
                                    <a href="#">
                                        <asp:Image ID="imgJia" runat="server" Width="17" Height="20" ImageAlign="AbsMiddle" ImageUrl="../images/jia.png" /></a>
                                </td>
                                <td height="50" class="red">
                                    <asp:Literal ID="litMoney" runat="server"></asp:Literal>
                                </td>
                            </tr>
                        </ItemTemplate>
                    </asp:Repeater>
                    <tr>
                        <td class="none">
                            &nbsp;
                        </td>
                        <td class="none">
                            &nbsp;
                        </td>
                        <td class="none">
                            总价：<strong class="red"> <span id="sMoneyCount">
                                <asp:Literal ID="litMoney" runat="server"></asp:Literal></span> </strong>
                        </td>
                    </tr>
                </table>
                <asp:PlaceHolder ID="phPayInfo" runat="server">
                    <table width="100%" border="0" cellspacing="0" cellpadding="0" class="mycar_adree">
                        <tr>
                            <td colspan="2" bgcolor="#e4e4e4">
                                <strong>送货信息</strong>
                            </td>
                        </tr>
                        <tr>
                            <td width="13%" align="right" valign="bottom" style="padding-top: 30px;">
                                收货人：
                            </td>
                            <td width="87%" valign="bottom">
                                <input type="text" id="iConsignee" runat="server" />
                            </td>
                        </tr>
                        <tr>
                            <td align="right" valign="bottom">
                                电话号码：
                            </td>
                            <td valign="bottom">
                                <input type="text" id="iTelphone" runat="server" />
                            </td>
                        </tr>
                        <tr>
                            <td align="right" valign="bottom">
                                收货地址：
                            </td>
                            <td valign="bottom">
                                <input type="text" id="iAddress" runat="server" size="40" />
                            </td>
                        </tr>
                        <tr>
                            <td>
                                &nbsp;
                            </td>
                            <td>
                                <asp:ImageButton ID="imgbtnSure" runat="server" ImageUrl="images/sure.png" Width="60"
                                    Height="25" />
                                <asp:ImageButton ID="imgbtnNext" runat="server" ImageUrl="images/juxu.png" Width="80"
                                    Height="25" />
                                <%--<a href="#">
                                    <img src="images/sure.png" width="60" height="25" /></a> <a href="#">
                                        <img src="images/juxu.png" width="80" height="25" /></a>--%>
                            </td>
                        </tr>
                    </table>
                </asp:PlaceHolder>
                <asp:PlaceHolder ID="phNoLogin" runat="server">
                    <p>
                        您还没有登录,<a href="/Login.aspx?returnurl='/Shopping/ShoppingCart.aspx'">点击登录</a>
                    </p>
                </asp:PlaceHolder>
            </div>
        </div>
        <div class="contright">
            <uc1:UserLoginCtrl ID="UserLoginCtrl1" runat="server" />
            <uc2:WeiboCtrl ID="WeiboCtrl1" runat="server" />
        </div>
        <div class="clear">
        </div>
    </div>
    <script type="text/javascript">
        function editcount(domid, money, num) {
            var oldnum = $("#" + domid).val();

            $("#" + domid).val(oldnum + num);
            var moneycount = $("#sMoneyCount").val();
            $("#sMoneyCount").val(moneycount + money);
        }
    </script>
</asp:Content>
